<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
</div>

<div class="row RowSpace LastRow">
  <DataGrid module="Module.ConnectArea" rowdblclick="rowDblClick()" isselect="true" isedit="false">
      <TextBoxColumn DisplayName="编码" width="120px" ValueField="Code"></TextBoxColumn>
      <TextBoxColumn DisplayName="名称" width="120px" ValueField="Name"></TextBoxColumn>
      <DropdownListColumn DisplayName="配送模式" width="150px" ValueField='DeliveryMode' Enum="DeliveryModeEnum"></DropdownListColumn>
      <DropdownListColumn DisplayName="推拉模式" width="150px" ValueField='PushPullMode' Enum="PushPullModeEnum"></DropdownListColumn>
      <ReferColumn Entityname="Department" DisplayName="上游部门"  width="120px" WindowTitle="部门" KeyField="UpDepartment._id" ValueField="UpDepartment.Code" TextField="UpDepartment.Name" BindKeyField="_id" BindValueField="Code" BindTextField="Name">
        <Column type="0" width="150px" displayname="编码" valuefield="Code"></Column>
        <Column type="textbox" width="150px" displayname="名称" valuefield="Name"></Column>
        <Column width="286px" displayname="备注" valuefield="Remark"></Column>
      </ReferColumn>
      <ReferColumn Entityname="Department" DisplayName="下游部门"  width="120px" WindowTitle="部门" KeyField="DownDepartment._id" ValueField="DownDepartment.Code" TextField="DownDepartment.Name" BindKeyField="_id" BindValueField="Code" BindTextField="Name">
        <Column type="0" width="150px" displayname="编码" valuefield="Code"></Column>
        <Column type="textbox" width="150px" displayname="名称" valuefield="Name"></Column>
        <Column width="286px" displayname="备注" valuefield="Remark"></Column>
      </ReferColumn>
      <CheckBoxColumn DisplayName="生效" width="60px" ValueField="IsEffective"></CheckBoxColumn>
  </DataGrid>
</div>